﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ParityConverter.xaml.cs" company="R.V.Kasner">
//   Copyright © 2011 R.V.Kasner
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace Owen.Terminal.View.Converters
{
    using System;
    using System.IO.Ports;

    public class ParityConverter : BaseEnumConverter<Parity>
    {
        public ParityConverter()
            : base(
                new[]
                    {
                        new Tuple<Parity, string>(Parity.None, "Нет"),
                        new Tuple<Parity, string>(Parity.Even, "Чет"), 
                        new Tuple<Parity, string>(Parity.Mark, "В 1"), 
                        new Tuple<Parity, string>(Parity.Odd, "Нечет"), 
                        new Tuple<Parity, string>(Parity.Space, "В 0"), 
                    })
        {
        }
    }
}